package com.example.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//返回的json格式
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Message {
    private int code;
    private String message;
    private Object data;

    public static Message out(int c, String m, Object d) {
        return new Message(c, m, d);
    }
}
